<?php
namespace BP\Sys;

use BP\En\EntityMyPK;

require_once("BP/En/Map.php");
class FrmEleDB extends EntityMyPK {
	public function getEleID () 
	{
		return $this->GetValStrByKey(FrmEleDBAttr::$EleID);
	}
	public function setEleID ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$EleID, $value);
	}
	public function getTag1 () 
	{
		return $this->GetValStringByKey(FrmEleDBAttr::$Tag1);
	}
	public function setTag1 ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$Tag1, $value);
	}
	public function getTag2 () 
	{
		return $this->GetValStringByKey(FrmEleDBAttr::$Tag2);
	}
	public function setTag2 ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$Tag2, $value);
	}
	public function getTag3 () 
	{
		return $this->GetValStringByKey(FrmEleDBAttr::$Tag3);
	}
	public function setTag3 ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$Tag3, $value);
	}
	public function getTag4 () 
	{
		return $this->GetValStringByKey(FrmEleDBAttr::$Tag4);
	}
	public function setTag4 ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$Tag4, $value);
	}
	public function getTag5 () 
	{
		return $this->GetValStringByKey(FrmEleDBAttr::$Tag5);
	}
	public function setTag5 ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$Tag5, $value);
	}
	public function getFK_MapData () 
	{
		return $this->GetValStrByKey(FrmEleDBAttr::$FK_MapData);
	}
	public function setFK_MapData ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$FK_MapData, $value);
	}
	public function getRefPKVal () 
	{
		return $this->GetValStrByKey(FrmEleDBAttr::$RefPKVal);
	}
	public function setRefPKVal ($value) // [String value]
	{
		$this->SetValByKey(FrmEleDBAttr::$RefPKVal, $value);
	}
	public function getFID () 
	{
		return $this->GetValInt64ByKey(FrmEleDBAttr::$FID);
	}
	public function setFID ($value) // [long value]
	{
		$this->SetValByKey(FrmEleDBAttr::$FID, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($mypk) // [String mypk]
	{
		$me = new self();
		$me->setMyPK($mypk);
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_FrmEleDB", "表单元素扩展DB");
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetEnType($EnType->Sys);
		$map->IndexField = FrmEleDBAttr::$RefPKVal;
		$map->AddMyPK();
		$map->AddTBString(FrmEleDBAttr::$FK_MapData, NULL, "FK_MapData",  TRUE ,  FALSE , 1, 100, 20);
		$map->AddTBString(FrmEleDBAttr::$EleID, NULL, "EleID",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddTBString(FrmEleDBAttr::$RefPKVal, NULL, "RefPKVal",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddTBInt(FrmEleDBAttr::$FID, 0, "FID",  FALSE ,  TRUE );
		$map->AddTBString(FrmEleDBAttr::$Tag1, NULL, "Tag1",  TRUE ,  FALSE , 0, 1000, 20);
		$map->AddTBString(FrmEleDBAttr::$Tag2, NULL, "Tag2",  TRUE ,  FALSE , 0, 1000, 20);
		$map->AddTBString(FrmEleDBAttr::$Tag3, NULL, "Tag3",  TRUE ,  FALSE , 0, 1000, 20);
		$map->AddTBString(FrmEleDBAttr::$Tag4, NULL, "Tag4",  TRUE ,  FALSE , 0, 1000, 20);
		$map->AddTBString(FrmEleDBAttr::$Tag5, NULL, "Tag5",  TRUE ,  FALSE , 0, 1000, 20);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	protected function beforeUpdateInsertAction () 
	{
		return parent->beforeUpdateInsertAction();
	}
	public function GenerPKVal () 
	{
		$this->setMyPK((((($this->getFK_MapData() . "_") . $this->getEleID()) . "_") . $this->getRefPKVal()));
	}
}
?>
